package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Lenovo 2022/7/25 16:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Hotel {
    //入住登记
    private Integer id;
    //老人名字
    private String name;
    //性别
    private  String sex;
    //电话
    private  String phone;
    //入住时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private  Date time;
   //房间
    private  String bed;




}
